//
//  TTVTextConventTool.m
//  dump_wechatDylib
//
//  Created by 周启睿 on 2019/1/31.
//  Copyright © 2019年 周启睿. All rights reserved.
//

#import "TTVTextConventTool.h"

@implementation TTVTextConventTool

+(NSString*)DataTOjsonString:(id)object{
    NSString *jsonString = nil;
    NSError *error;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:object
                                                       options:NSJSONWritingPrettyPrinted
                                                         error:&error];
    if (!jsonData) {
        NSLog(@"Got an error: %@", error);
    } else {
        jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
    }
    return jsonString;
}



@end
